<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>1号店</title>
<link rel="stylesheet" type="text/css" href="http://127.0.0.1/yhd/Application/Index/View/Public/css/base.css">
<link rel="stylesheet" type="text/css" href="http://127.0.0.1/yhd/Application/Index/View/Public/css/style.css">
<script src="http://127.0.0.1/yhd/Application/Index/View/Public/js/jquery-1.7.2.min.js"></script>
<script src="http://127.0.0.1/yhd/Application/Index/View/Public/js/cart.js"></script>
<script src="http://127.0.0.1/yhd/Application/Index/View/Public/js/index.js"></script>

<script type="text/javascript">
 
  var hoverCart = "<?php echo U('Common/hoverCart');?>";
  
</script>

</head>

<body>

<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<script type="text/javascript">
  function key(){
  if(form1.keywords.value==""){
    alert("请输入查询关键字！");form1.keywords.focus();
       return false;
  }
  if((form1.keywords.value.length)>50){
    alert("关键字过长，请简化在50个字符内！");
          form1.keywords.focus();return false;
  }
} 
</script>

<script type="text/javascript">
  
  // hover购物车
$(function(){
  $('.r ul li.cart').hover(function(){
     $('.down').show();
      $.ajax({
                url: "<?php echo U("Common/hoverCart");?>",
                type: 'POST',
                dataType: 'json',
                success:function(phpData){
          var str='';
          $.each(phpData.goods,function(k,v) {
     str+=' <li class="t"><a class="pic" href="<?php echo U('Index/Details/index');?>/type_id/'+v.good.type_id+'/cat_id/'+v.good.cat_id+'/goods_id/'+v.good.goods_id+'"><img src="http://127.0.0.1/yhd/'+v.good.goods_img+'" alt="" width="60" height="60"></a> <a href="<?php echo U('Index/Details/index');?>/type_id/'+v.good.type_id+'/cat_id/'+v.good.cat_id+'/goods_id/'+v.good.goods_id+'" class="name">'+v.good.goods_name+'</a><p class="price">¥<em>'+v.price+'*'+v.num+'</em><a href="javascript:;" class="del" sid="'+k+'">删除</a></p></li>';
      });


           $('.down .cart_list').html(str);
          $('.total_price .total').html(phpData.total);
          $('.jian em').html(phpData.total_rows);

        }
})

  },function(){

 $('.down').hide();
});

// 删除
$("p.price a.del").live('click', function() {

              var sid=$(this).attr('sid');
               var _this = $(this);
                // alert(sid);
              $.ajax({
                url: "<?php echo U("Cart/delOne");?>",
                type: 'POST',
                dataType: 'json',
                data: {sid:sid},
                success:function(phpData){

                 _this.parents('li.t').remove();
                 $('.total_price .total').html(phpData);
                }
              })
            });

})
</script>
<div id="top">
<div class="topin">
  <!-- 顶部左边开始 -->
    <div class="topleft">
      <ul>
         <li class="login">

        <?php if(!isset($hd['session']['username'])){ ?>
  <span>&nbsp;Hi,请<a href="<?php echo U('User/login');?>">登录</a>/<a href="<?php echo U('User/register');?>">注册</a></span>
    <?php }else{ ?>
   <span style="">&nbsp;<span><?php echo $hd['session']['username'];?>,</span><a href="<?php echo U('User/out');?>">退出</a></span>
    <?php } ?>
        <i></i>
        <div class="list ucenter" > 
          <a  class="l-img" href="#"></a> 

      <a  class="j" href="">会员专享，签到赚积分</a>
             <a class="h" href="">欢迎进入我的1号店 ></a>
             <p>
              <a href="">积分</a><a href="">勋章</a>
             </p>
            </div>
                 </li>
       <!--           <li class="ship"><span>送货至</span><a class="c"href="#">北京</a>
                 省份选择下拉菜单 
                <div class="list province" >
               
                  <p><span> 热门省市</span>
                       <a href="#">上海</a>
                       <a href="#">北京</a>
                       <a href="#"> 广东</a>
                       <a href="#">四川</a>


                        <a href="#">福建</a>
                </p>
                 <ul>
                  <li>A <a href="#">安徽</a></li>
                  <li>B <a href="#">北京</a></li>
                  <li>C <a href="#">重庆</a></li>
                  <li>G <a href="#">广东</a><a href="#">广西</a>
                   <a href="#">贵州</a><a href="#">甘肃</a>
                  </li>
                  <li>F <a href="#">福建</a></li>
                  <li>H <a href="#">河北</a><a href="#">黑龙江</a><a href="#">海南</a><a href="#">湖北</a><a href="#">湖南</a><a href="#">河南</a></li>
                  <li>J <a href="#">江苏</a><a href="#">吉林</a><a href="#">江西</a></li>
                  <li>L <a href="#">辽宁</a></li>

                 </ul>
               <ul>
                <li>N <a href="#">内蒙古</a><a href="#">宁夏</a></li>
                <li>Q <a href="#">青海</a></li>
                <li>S <a href="#">上海</a><a href="#">山东</a><a href="#">山西</a><a href="#">四川</a><a href="#">陕西</a></li>
                <li>T <a href="#">天津</a></li>
                <li>X <a href="#">西藏</a></li>
                <li>Y <a href="#">云南</a></li>
                <li> Z <a href="#"> 浙江</a></li>
               </ul>
             </div>
              省份选择下拉结束 
                 </li> -->
      </ul>
            </div>
    <!-- 顶部左边结束 -->
    <!-- 顶部右边便开始 -
    <div class="topright">
     <ul >
      <li ><a href="#"> 我的1号店 <i></i></a>
            <div class="list">
              <i></i>
              <ul >
                <li ><a href="#">我的订单</a></li>
                  <li><a href="#">我的积分</a></li>
                  <li><a href="#">我的抵用劵</a></li>
                  <li><a href="#">我的收藏夹</a></li>
                  <li><a href="#">我的评论</a></li>
                  <li><a href="#">会员专享</a></li>
              </ul>
            </div>

      </li>
      <li class="fav"><a href="#"> 收藏夹<i></i></a>
             <div class="list"  >
                  <i></i>
                <ul >
                  <li><a href="#">商品收藏</a></li>
                  <li><a href="#">店铺收藏</a></li>
                 </ul>
           </div>
          </li>
      <li class="tel"><a href="#"><em class="ico"></em> 手机1号店<i></i></a>
          <div class="list tel ">
          <i></i>
         <p>客户端注册送100元壕礼</p>
         
        <div class="mobile">
         <a href="#">iPhone</a>
         <a href="#">iPad</a>
         <a href="#">Android</a>
         
         </div>
         <img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/code.jpg" alt="" />

       </div>

      </li>
      <li class="vdian"><a href="#"><em class="ico ico2"></em> 1号V店<i></i></a>
         <div class="list "  >
          <i></i>
               <span>0门槛开店赚钱</span>
              <span><a href="">什么是1号V店？</a></span>
               <img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/v.jpg" alt="" />
        </div>
    

      </li>
      <li class="ser"><a href="#"> 客户服务<i></i></a>

      <div class="list">
      <i></i>
          <ul>
            <li><a href="#">包裹跟踪</a></li>
            <li><a href="#">常见问题</a></li>
            <li><a href="#">在线退换货</a></li>
            <li><a href="#">在线投诉</a></li>
            <li><a href="#">配送范围</a></li>
            
            </ul>
        </div>



      </li>
      <li  class="dao"><a href="#"> 网站导航<i></i></a>
           <div class="list">
          <i></i>
          <p> <a href="#">1号商城</a>   <a href="#">壹药网</a></p>
          <p class="info"> <a href="">1起创</a><a href="">1号社区</a><a href="">1号校园</a><a href="">0元试用</a><a href="">平安金卡</a><a href="">分销平台</a></p>
          <p class="end"><a href="">网站联盟</a><a href="">招商通道</a><a href="">  企业采购</a></p>

          </div>


      </li>

     <span>关注我们: <a class="weibo" href=""></a><a class="code" href=""></a></span>
       </ul>
    </div>
    <!-- 顶部右边结束 -->
  </div>


</div>

<!-- 顶部结束 -->

<!-- 广告开始 -->
<!-- <div id="ad">
  <a href=""><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/ad.jpg" alt="" /></a>
</div> -->
<!-- 广告结束 -->
<!-- 搜索区域开始 -->
<div class="search_area">
<a href="http://127.0.0.1/yhd"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/logo.png" alt="" /></a>


<div class="search">
  
     <form name="form1" action="<?php echo U('List/index');?>" method="get" onsubmit="return key()">
    
    <input type="text" name="keywords"  class="int" value="纸巾陆战队4折起 清风卷筒纸10卷App专享价14.9元" onfocus="this.value=''"  value="<?php echo $word;?>"  />
    <input type="submit"  class="f_btn" value="搜索" />
    </form>
    <p class="hotwords">
    <a  href="#">小米手机</a>
    <a href="#">蒙奇奇</a>
    <a href="#">耳麦</a>
    <a href="">苹果手机壳</a>
    <a href="">酷派 </a>
        <a href="">老人手机</a>
        <a href="">天语手机</a>
        <a href=""> 小米耳机</a>
        <a href=""> 减肥</a>
         <a href=""> 大连</a>
    </p>
    </div>     
  <div class="r">
  <ul>
    <!-- <li class="icon fu" ><a href="#"><i></i>福利<s></s></a></li>
  <li class="icon order"><a  href="#"><i></i>订单查询<s></s></a></li> -->
    <li class="cart" id="hoverCart" ><i class="arrow"></i><a href="<?php echo U('Cart/index');?>" class="cart"><i></i>购物车</a>
        <?php if(!isset($_SESSION['cart'])||$_SESSION['cart']['total']==0){ ?>
    <div class="down" >
      <span class="cart_ico"></span>
      <p class="text">您的购物车里还没有1号店的商品哦~~</p>
</div>
<?php }else{ ?>
<div class="down" >
  <div class="total_price">
    <a href="<?php echo U('Cart/index');?>">查看购物车</a>
    <p>商品总价</p>
    <strong>¥<em class="total"></em></strong>
  </div>
  <ul class="cart_list">
   <!--  <li class="t">
      <a class="pic" href="#"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/buyed.jpg" alt="" width="60" height="60"></a>
      <a href="#" class="name">昊昊 2015新款夏季短袖休闲上衣 亚麻宽松衬衣文艺棉麻衬衫 7108#灰色</a>
      <p class="price"><em>¥144.00</em><a href="#" class="del">删除</a></p>
    </li> -->
   
  </ul>
  <div class="jian">共<em></em>件商品</div>
</div>
<?php } ?>

    </li>
    </ul>
  </div>
</div>
<!-- 搜索区域结束 -->

<!-- 菜单栏开始 -->

<div id="nav">
<div class="nav_in">
<div class="nav">
  <a class="all" id="all" href="#">所有商品分类</a>
  <!-- 导航开始 -->

<!-- style="display:none" -->
  <div class="menu" >
    <ul>
      <?php foreach ($data as $k=>$v){?>
      <li>
       
       <div class="ico ico<?php echo $k;?>"><?php echo $v['ico'];?></div>
               
           <a href="<?php echo U('Index/List/index',array('cid'=>$v['cid']));?>"><?php echo $v['cname'];?></a>
              <div class="submenu">
                 <div class="l">
               <?php foreach ($v[_data] as $key=>$value){?>
                   <dl>
                    <dt><a href="<?php echo U('Index/List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a></dt>
                     <?php foreach ($value[_data] as $key3=>$value3){?>
                    <dd>
                  <a href="<?php echo U('Index/List/index',array('cid'=>$value3['cid']));?>"> <?php echo $value3['cname'];?></a></dd>
                     <?php }?>   
                  </dl>
                   <?php }?>    
              
                 
                 </div>

               <div class="r">
        <a href="#"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/menu1.jpg"  alt="" /></a>
        <a href="#"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/menu2.jpg" width="239" height="198" alt="" /></a>
        <a href="#"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/menu3.jpg" width="239" height="198"  alt="" /></a>
               </div>
              </div>
              
      </li>
    <?php }?>  
    </ul>
  </div>

  <!-- 导航结束 -->  
</div> 
<!-- 导航左边开始 -->
  <ul class="nav_r">

  <li><a class="cur" href="http://127.0.0.1/yhd">首页</a></li>
  <?php foreach ($menu as $k=>$v){?>
  <li><a href="<?php echo U('Index/List/index',array('cid'=>$v['cid']));?>"><?php echo $v['ctitle'];?></a></li>
 <?php }?>
  <span class="tel"><a class="img" href=""><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/tel.jpg" alt="" /></a></span>
</ul>

  <!-- 导航右边结束 -->
</div>
</div>
<!-- 菜单栏结束

<!-- 导航、幻灯片、便携工具开始 -->
 <div id="main">

 	   <!-- 幻灯片开始 -->
 		<div id="banner">
	<div class="bd">
        <ul>          	    
            <li  style="background:#7F2AAC;">
                <div class="m-width">
                <a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/3"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/01.jpg" /></a>
                </div>
            </li>
            <li style="background:#FEFBB8;">
                <div class="m-width">
                <a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/2"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/02.jpg" /></a>
                </div>
            </li>
            <li style="background:#236FC3;">
                <div class="m-width">
                <a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/4"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/03.jpg" /></a>
                </div>
            </li>
            <li style="background:#FC0;">
                <div class="m-width">
                <a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/10"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/04.jpg" /></a>
                </div>
            </li> 
            <li style="background:#8CD1EE;">
                <div class="m-width">
                <a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/3"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/05.jpg" /></a>
                </div>
            </li> 
            <li style="background:#FE9307;">
                <div class="m-width">
                <a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/1"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/06.jpg" /></a>
                </div>
            </li> 
            <li style="background:#58CDD4;">
                <div class="m-width">
                <a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/3"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/07.jpg" /></a>
                </div>
            </li> 
            <li style="background:#C7EAA0;">
                <div class="m-width">
                <a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/2"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/08.jpg" /></a>
                </div>
            </li> 
         
        </ul>
    </div>
    <div class="btn">
        <a class="prev" href="javascript:void(0);"></a>
        <a class="next" href="javascript:void(0);"></a>
        <div class="hd">
        <ul>
        	<li style="background:#FF3C3C;"></li>
        	<li></li>
        	<li></li>
        	<li></li>
        	<li></li>
        	<li></li>
        	<li></li>
        	<li></li>
        </ul>
        </div>
    </div>
</div>
<!-- 幻灯片结束 -->

	<!-- 右边便携工具开始 -->
<div class="right">
<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/6"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/m.jpg" alt="" /></a>
</div>
<!-- 右边便携工具结束 -->
 </div>
<!-- 导航、幻灯片、便携工具结束-->

<!-- 产品区块开始 -->
<div class="goods">
  <!-- 1F 流行百货开始 -->
<div class="f f8" id="f1">
<div class="title">
<div class="bt">
  <a href="javascript:;">流行百货</a>
   </div>
   <div class="tab">
  
      
    <ul>
        <em class="arrow"></em>
       <li><a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/6">女装流行</a></li>
      <li > <a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/8">男装流行</a></li>
     
  
    
    
    
    </ul>
   </div>
   <div class="keyword">
            <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($six)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($six as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($six)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
      <a href="<?php echo U('Index/List/index',array('cid'=>$v['cid']));?>"> <?php echo $v['cname'];?></a>
    <?php }}?>
    </div>
</div>
 


<div class="sg" style="display:block;"  >
  <ul>
  <!-- 中间产品区块轮播开始 -->
 <div class="c c2 yi" >
  <div class="im">
  <a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/6"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/7c12.jpg" style="display:block;" /></a>
  <a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/6"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/7c2.jpg" alt="" /></a>
  <a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/6"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/7c3.jpg" alt="" /></a>

  </div>
  
  <ul>
    
    <li style="background:#FF3C3C;"></li>
    <li></li>
    <li></li>
  </ul>
</div>
    <!-- 中间产品区块轮播结束 -->
            <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($six_g)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($six_g as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=4)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($six_g)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
    <li class="t small" >
    <a href="<?php echo U('Index/Details/index',array('type_id'=>$v['type_id'],'cat_id'=>$v['cat_id'],'goods_id'=>$v['goods_id']));?>"><img src="http://127.0.0.1/yhd/<?php echo $v['goods_img'];?>" alt="" width="220" height="322" />
         <!--  <span><b>3.1</b>折起</span> -->
    </a>
       
    </li>
    <?php }}?>
    
  </ul>
</div>

<div class="sg"  >
  <ul>
   <!-- 中间产品区块轮播开始 -->
 <div class="c c2 yi" >
  <div class="im">
  <a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/8"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/7c1.jpg" style="display:block;"  /></a>
  <a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/8"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/7c21.jpg" alt="" /></a>
  <a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/8"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/7c32.jpg" alt="" /></a>

  </div>
  
  <ul>
    
    <li style="background:#FF3C3C;"></li>
    <li></li>
    <li></li>
  </ul>
</div>
    <!-- 中间产品区块轮播结束 -->
            <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($eight_g)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($eight_g as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=4)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($eight_g)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
    <li class="t small" >
    <a href="<?php echo U('Index/Details/index',array('type_id'=>$v['type_id'],'cat_id'=>$v['cat_id'],'goods_id'=>$v['goods_id']));?>"><img src="http://127.0.0.1/yhd/<?php echo $v['goods_img'];?>" alt="" width="220" height="322" />
         <!--  <span><b>3.1</b>折起</span> -->
    </a>
       
    </li>
    <?php }}?>
  </ul>
</div>

</div>

  <!-- 1F 流行百货结束 --> 

<!-- 2F 进口海购 -->
<div class="f f1"  id="f2">
<div class="title">
<div class="bt">
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/1">进口</a>•<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/1">海购</a>
	 </div>
	 <div class="keyword">
	 	        <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($one)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($one as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($one)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
      <a href="<?php echo U('Index/List/index',array('cid'=>$v['cid']));?>"> <?php echo $v['cname'];?></a>
    <?php }}?>
	 	</div>
	 	</div>
  <div class="l">
  	<ul>
            <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($one)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($one as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($one)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
  		<li><a href="<?php echo U('Index/List/index',array('cid'=>$v['cid']));?>"> <?php echo $v['cname'];?></a></li>
    <?php }}?>
  		</ul>
  		<a class="img" href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/1">  <img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/1f1.jpg" alt="" /></a>
  </div>
  <!-- 中间产品区块轮播开始 -->
 <div class="c c1" >
	<div class="im">
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/1"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/1c1.jpg" style="display:block;" /></a>
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/1"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/1c2.jpg" alt="" /></a>
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/1"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/1c3.jpg" alt="" /></a>

	</div>
	
	<ul>
		
		<li style="background:#FF3C3C;"></li>
		<li></li>
		<li></li>
	</ul>
</div>

  
    <!-- 中间产品区块轮播结束 -->
  <div class="r">
     <ul>
            <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($one_g)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($one_g as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($one_g)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
    <li>
    <a href="<?php echo U('Index/Details/index',array('type_id'=>$v['type_id'],'cat_id'=>$v['cat_id'],'goods_id'=>$v['goods_id']));?>"><img src="http://127.0.0.1/yhd/<?php echo $v['goods_img'];?>" alt="" />
    <p class="t"><?php echo hd_substr($v['goods_name'],30,'...');?></p>
    <p class="price">¥<?php echo $v['shop_price'];?></p>
    </a>
    </li>
    <?php }}?>
   </ul>
  </div>
</div>
    <!-- 2F 进口海购结束 -->      

   


     <!-- 3F 食品饮料 -->
<div class="f f3" id="f3">
<div class="title">
<div class="bt">
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/2">食品饮料</a>
	 </div>
	 <div class="keyword">
	 	         <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($two)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($two as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($two)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
     <a href="<?php echo U('Index/List/index',array('cid'=>$v['cid']));?>"> <?php echo $v['cname'];?></a>
    <?php }}?>
	 	</div>
	 	</div>
  <div class="l">
           
  	<ul>
  		          <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($two)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($two as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($two)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
      <li><a href="<?php echo U('Index/List/index',array('cid'=>$v['cid']));?>"> <?php echo $v['cname'];?></a></li>
    <?php }}?>
  		</ul>
  		<a class="img" href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/2">  <img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/3l.jpg" alt="" /></a>
  </div>
   <!-- 中间产品区块轮播开始 -->
 <div class="c c3" >
	<div class="im">
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/2"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/3c1.jpg" style="display:block;" /></a>
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/2"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/3c2.jpg" alt="" /></a>
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/2"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/3c3.jpg" alt="" /></a>

	</div>
	
	<ul>
		
		<li style="background:#FF3C3C;"></li>
		<li></li>
		<li></li>
	</ul>
</div>
    <!-- 中间产品区块轮播结束 -->
  <div class="r">
     <ul>
          <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($two_g)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($two_g as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($two_g)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
    <li>
    <a href="<?php echo U('Index/Details/index',array('type_id'=>$v['type_id'],'cat_id'=>$v['cat_id'],'goods_id'=>$v['goods_id']));?>"><img src="http://127.0.0.1/yhd/<?php echo $v['goods_img'];?>" alt="" />
    <p class="t"><?php echo hd_substr($v['goods_name'],30,'...');?></p>
    <p class="price">¥<?php echo $v['shop_price'];?></p>
    </a>
    </li>
    <?php }}?>
   </ul>
  </div>
</div>
    <!-- 3F 食品饮料 结束 --> 

    <!-- 4F 个户厨卫 开始 -->
<div class="f f4" id="f4">
<div class="title">
<div class="bt">
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/5">个户厨卫</a>
	 </div>
	 <div class="keyword">
 	        <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($five)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($five as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($five)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
     <a href="<?php echo U('Index/List/index',array('cid'=>$v['cid']));?>"> <?php echo $v['cname'];?></a>
    <?php }}?> 
	 	</div>
	 	</div>
  <div class="l">
           
  	<ul>

  		        <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($five)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($five as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($five)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
      <li><a href="<?php echo U('Index/List/index',array('cid'=>$v['cid']));?>"> <?php echo $v['cname'];?></a></li>
    <?php }}?>
  		</ul>
  		<a class="img" href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/5">  <img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/4l.jpg" alt="" /></a>
  </div>
  <!-- 中间产品区块轮播开始 -->
  <div class="c c4" >
	<div class="im">
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/5"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/4c1.jpg" style="display:block;" /></a>
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/5"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/4c2.jpg" alt="" /></a>
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/5"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/4c3.jpg" alt="" /></a>

	</div>
	
	<ul>	
		<li style="background:#FF3C3C;"></li>
		<li></li>
		<li></li>
	</ul>
</div>
    <!-- 中间产品区块轮播结束 -->
   <div class="r">
     <ul>
         <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($five_g)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($five_g as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($five_g)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
    <li>
    <a href="<?php echo U('Index/Details/index',array('type_id'=>$v['type_id'],'cat_id'=>$v['cat_id'],'goods_id'=>$v['goods_id']));?>"><img src="http://127.0.0.1/yhd/<?php echo $v['goods_img'];?>" alt="" />
    <p class="t"><?php echo hd_substr($v['goods_name'],30,'...');?></p>
    <p class="price">¥<?php echo $v['shop_price'];?></p>
    </a>
    </li>
    <?php }}?>
   </ul>
  </div>
  
   
</div>
    <!-- 4F 个户厨卫 结束 -->  

 <!-- 5F 母婴玩具开始 -->
<div class="f f5 " id="f5">
<div class="title">
<div class="bt">
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/3">母婴玩具</a>
	 </div>
	 <div class="keyword">
            <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($three)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($three as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($three)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
     <a href="<?php echo U('Index/List/index',array('cid'=>$v['cid']));?>"> <?php echo $v['cname'];?></a>
    <?php }}?> 
	 	</div>
	 	</div>
  <div class="l">
                     
  	<ul>
  		        <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($three)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($three as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($three)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
      <li><a href="<?php echo U('Index/List/index',array('cid'=>$v['cid']));?>"> <?php echo $v['cname'];?></a></li>
    <?php }}?>
  		</ul>
  		<a class="img" href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/3">  <img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/5l.jpg" alt="" /></a>
  </div>
  <!-- 中间产品区块轮播开始 -->
 <div class="c c5" >
	<div class="im">
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/3"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/5c1.jpg" style="display:block;" /></a>
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/3"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/5c2.jpg" alt="" /></a>
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/3"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/5c3.jpg" alt="" /></a>

	</div>
	
	<ul>
		<li style="background:#FF3C3C;"></li>
		<li></li>
		<li></li>
	</ul>
</div>
    <!-- 中间产品区块轮播结束 -->
    <div class="r">
     <ul>
             <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($three_g)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($three_g as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($three_g)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
    <li>
    <a href="<?php echo U('Index/Details/index',array('type_id'=>$v['type_id'],'cat_id'=>$v['cat_id'],'goods_id'=>$v['goods_id']));?>"><img src="http://127.0.0.1/yhd/<?php echo $v['goods_img'];?>" alt="" />
    <p class="t"><?php echo hd_substr($v['goods_name'],30,'...');?></p>
    <p class="price">¥<?php echo $v['shop_price'];?></p>
    </a>
    </li>
    <?php }}?>
   </ul>
  </div>
</div>
     <!-- 5F 母婴玩具结束 -->

<!-- 6F 家居馆开始 -->
<div class="f f6 " id="f6">
<div class="title">
<div class="bt">
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/4">家居馆</a>
	 </div>
	 <div class="keyword">
            <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($four)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($four as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($four)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
     <a href="<?php echo U('Index/List/index',array('cid'=>$v['cid']));?>"> <?php echo $v['cname'];?></a>
    <?php }}?> 
	 	</div>
	 	</div>
  <div class="l">
                             
  	<ul>
  		        <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($four)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($four as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($four)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
      <li><a href="<?php echo U('Index/List/index',array('cid'=>$v['cid']));?>"> <?php echo $v['cname'];?></a></li>
    <?php }}?>

  		</ul>
  		<a class="img" href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/4">  <img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/6l.jpg" alt="" /></a>
  </div>
  <!-- 中间产品区块轮播开始 -->
  <div class="c c6" >
	<div class="im">
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/4"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/6c1.jpg" style="display:block;" /></a>
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/4"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/6c2.jpg" alt="" /></a>
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/4"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/6c3.jpg" alt="" /></a>

	</div>
	<ul>
		<li style="background:#FF3C3C;"></li>
		<li></li>
		<li></li>
	</ul>
</div>
    <!-- 中间产品区块轮播结束 -->
   <div class="r">
     <ul>
            <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($four_g)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($four_g as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($four_g)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
    <li>
    <a href="<?php echo U('Index/Details/index',array('type_id'=>$v['type_id'],'cat_id'=>$v['cat_id'],'goods_id'=>$v['goods_id']));?>"><img src="http://127.0.0.1/yhd/<?php echo $v['goods_img'];?>" alt="" />
    <p class="t"><?php echo hd_substr($v['goods_name'],30,'...');?></p>
    <p class="price">¥<?php echo $v['shop_price'];?></p>
    </a>
    </li>
    <?php }}?>
   </ul>
  </div>
</div>
     <!-- 6F 家居馆结束 -->


    
<!-- 7F 手机家电 开始 -->
<div class="f  f7" id="f7">
<div class="title">
<div class="bt">
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/9">手机家电</a>
	 </div>
	 <div class="keyword"> 
 	          <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($nine)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($nine as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($nine)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
     <a href="<?php echo U('Index/List/index',array('cid'=>$v['cid']));?>"> <?php echo $v['cname'];?></a>
    <?php }}?> 
	 	</div>
	 	</div>
  <div class="l">
                     
  	<ul>
         
  		        <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($nine)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($nine as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($nine)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
      <li><a href="<?php echo U('Index/List/index',array('cid'=>$v['cid']));?>"> <?php echo $v['cname'];?></a></li>
    <?php }}?>

  		</ul>
  		<a class="img" href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/9">  <img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/8l.jpg" alt="" /></a>
  </div>
 <!-- 中间产品区块轮播开始 -->
   <div class="c c8" >
	<div class="im">
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/9"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/8c1.jpg" style="display:block;" /></a>
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/9"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/8c2.jpg" alt="" /></a>
	<a href="http://127.0.0.1/yhd/index.php/Index/List/index/cid/9"><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/8c3.jpg" alt="" /></a>
	</div>
	<ul>
		<li style="background:#FF3C3C;"></li>
		<li></li>
		<li></li>
	</ul>
</div>
    <!-- 中间产品区块轮播结束 -->
  
  <div class="r">
  	 <ul>
             <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($nine_g)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($nine_g as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=6)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($nine_g)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
   	<li>
   	<a href="<?php echo U('Index/Details/index',array('type_id'=>$v['type_id'],'cat_id'=>$v['cat_id'],'goods_id'=>$v['goods_id']));?>"><img src="http://127.0.0.1/yhd/<?php echo $v['goods_img'];?>" alt="" />
   	<p class="t"><?php echo hd_substr($v['goods_name'],30,'...');?></p>
   	<p class="price">¥<?php echo $v['shop_price'];?></p>
   	</a>
   	</li>
   	<?php }}?>
   </ul>
  </div>



</div>
   <!-- 7F 手机家电 结束 -->
 

       
</div>
<!-- 产品区块结束 -->
<div class="clear"></div>
<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!-- 底部开始 -->


	<div class="service">
	<div class="help">
		<dl>
			<dt>新手入门</dt>
            <dd><a href="">购物流程</a></dd> 
            <dd><a href="">商品验货与签收</a></dd>
    		<dd><a href="">联系客服</a></dd>
            <dd><a href="">大宗商品购买政策</a></dd>
            <dd><a href="">常见问题</a></dd>
		</dl>

       <dl>
    	<dt>配送服务</dt>
     <dd><a href="">配送进度查询</a>
     <dd><a href="">配送范围及运费</a></dd>
     <dd><a href="">准时达</a></dd>
     <dd><a href="">自提服务</a></dd>
    </dl>

     <dl>
  	<dt>支付方式</dt>
     <dd><a href="">货到付款</a></dd>
      <dd><a href="">网上支付</a></dd>
     <dd><a href="">银行转账</a></dd>
     <dd><a href="">抵用券使用</a></dd>
    </dl>



<dl>
	<dt>售后服务</dt>
    <dd><a href="">退换货政策</a></dd>
     <dd><a href="">退换货地址</a></dd>
     <dd><a href="">退款说明</a></dd>
     <dd><a href="">品牌售后服务电话</a></dd>
     <dd><a href="">延保服务</a></dd>
</dl>

<dl>
	<dt>自助服务</dt>

     <dd><a href="">取消订单</a></dd>
     <dd><a href="">退换货申请</a></dd>
     <dd><a href="">在线投诉</a></dd>
     <dd><a href="">补开发票</a></dd>
     <dd><a href="">绑定手机/邮箱</a></dd>
     <dd><a href="">礼品卡充值</a></dd>

</dl>

<dl>
	<dt>商家中心</dt>
     <dd><a href="">1号店入驻</a></dd>
     <dd><a href="">商必赢</a></dd>
     <dd><a href="">1号店网站规则</a> </dd>
</dl>
		

	</div>
</div>
<div class="qrcode">
	<div class="code1">
  <img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/qrcode.png" alt="" />
     <dl>
		<dt>1号店客户端</dt>
		<dd>客户端注册即送100元壕礼</dd>
		<dd><a class="c c1" href="">iPhone</a><a class="c c2" href=""> iPad</a><a class="c c3" href="">  Android </a></dd>
		</dl>
	</div>
	<div class="code1">
  <img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/qrcode2.jpg" alt="" />
     <dl>
		<dt>1号店官方微信</dt>
		<dd>万千优惠资讯抢先收到，互动、查物流一步搞定！</dd>
		
		</dl>
	</div>
</div>

<div class="footer">
	<div class="ser">
	<a href="#"><span class="s s1"></span>全国包邮</a>
	<a href="#"><span class="s s2"></span>正品保障</a>
	<a href="#"><span class="s s3"></span>售后无忧</a>
	<a href="#"><span class="s s4"></span>准时到达</a>
</div>
<div class="link">
	 <p><a href="#">关于1号店</a>|<a href="#">我们的团队</a>|<a href="#">网站联盟</a>|<a href="#">热门搜索</a>|<a href="#">友情链接</a>|<a href="#">1号店社区</a>|<a href="#">诚征英才</a>|<a href="#">商家登录</a>|<a href="#">供应商登录</a>|<a href="#">放心搜</a>|<a href="#">1号店新品</a>|<a href="#">开放平台</a></p>

<p><a href="#">沪ICP备13044278号</a>|<a href="#">合字B1.B2-20130004</a>| <a href="">营业执照</a>|<a href="#">互联网药品信息服务资格证</a>|<a href="#">互联网药品交易服务资格证</a></p>

<p>Copyright© 1号店网上超市 2007-2015，All Rights Reserved </p>
</div>
<p class="bei">
	<a href=""><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/b1.jpg" alt="" /></a>
	<a href=""><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/b2.jpg" alt="" /></a>
	<a href=""><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/b3.jpg" alt="" /></a>
	<a href=""><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/b4.jpg" alt="" /></a>
	<a href=""><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/b5.jpg" alt="" /></a>
	<a href=""><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/b6.jpg" alt="" /></a>
	<a href=""><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/b7.jpg" alt="" /></a>
	<a href=""><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/b8.jpg" alt="" /></a>
	<a href=""><img src="http://127.0.0.1/yhd/Application/Index/View/Public/images/b9.png" alt="" /></a>
</p>
</div>

<!-- 底部结束 -->



<!-- 楼层电梯开始 -->
<div class="floor">
  <a href="#f1"> <s>&#x3485;</s><i>流行百货</i></a>
	<a  class="on"  href="#f2"><s>&#x3481;</s><i>进口海购</i></a>
	
	<a href="#f3"><s>&#x3486;</s><i>食品饮料</i></a>
	<a href="#f4"><s>&#x347f;</s><i>个户厨卫</i></a>
	<a href="#f5"><s>&#x3456;</s><i>母婴玩具</i></a>
	<a href="#f6"><s>&#x345e;</s><i>精品家居</i></a>
	<!-- <a href="#f7"><s>&#xf0049;</s><i>流行百货</i></a> -->
	<a href="#f7"><s>&#x3457;</s><i>手机家电</i></a>
	

	<a href="#"><s>&#xf00f3;</s><i>用户反馈</i></a>
	<div id="back">
	<a  href="#"><s>&#xf012c;</s><i>返回顶部</i></a>
</div>
</div>
<!--楼层电梯结束 -->
</body>
</html>




